﻿<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8" />
        <meta name="viewport" content="width=device-width, initial-scale=1.0" />
        <title>@ViewBag.Title</title>
        <environment names="Development">
            <link rel="stylesheet" href="~/lib/bootstrap/dist/css/bootstrap.css" />
            <link rel="stylesheet" href="~/lib/font-awesome/css/font-awesome.min.css">
            <link rel="stylesheet" href="~/lib/jquery-ui/themes/ui-lightness/jquery-ui.css" />
            <link rel="stylesheet" href="~/css/admin.css" />
        </environment>
        <environment names="Staging,Production">
            <link rel="stylesheet" href="https://ajax.aspnetcdn.com/ajax/bootstrap/3.3.5/css/bootstrap.min.css"
                  asp-fallback-href="~/lib/bootstrap/dist/css/bootstrap.min.css"
                  asp-fallback-test-class="sr-only" asp-fallback-test-property="position" asp-fallback-test-value="absolute" />
            <link rel="stylesheet" href="~/lib/font-awesome/css/font-awesome.min.css">
            <link rel="stylesheet" href="http://ajax.aspnetcdn.com/ajax/jquery.ui/1.11.4/themes/ui-lightness/jquery-ui.css"
                  asp-fallback-href="~/lib/jquery-ui/themes/ui-lightness/jquery-ui.css"
                  asp-fallback-test-class="sr-only" asp-fallback-test-property="position" asp-fallback-test-value="absolute" />            
            <link rel="stylesheet" href="~/css/admin.css" asp-append-version="true" />
        </environment>
    </head>
<body>
@await Html.PartialAsync("_AdminLoading")
<div class="navbar navbar-inverse navbar-fixed-top">
    <div class="container">
        <div class="navbar-header">
            <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a href="/" class="navbar-brand">Weapsy</a>
        </div>
        <div class="navbar-collapse collapse">
            <ul class="nav navbar-nav navbar-right">
                <li>
                    <a href="@Url.Action("Index", "Home", new {area = ""})" title="back to site">
                        <i class="fa fa-angle-left fa-fw"></i> back to site
                    </a>
                </li>
            </ul>
        </div>
    </div>
</div>
<div class="wrapper">
    <div class="navbar-collapse collapse sidebar">
        @await Html.PartialAsync("_AdminNavigation")
    </div>
    <div class="container body-content">
        @RenderBody()
        @*<hr />
        <footer>
            <p>&copy; 2016 - Weapsy</p>
            <p class="pull-right">powered by <a href="http://www.weapsy.org" title="Weapsy">Weapsy</a></p>
        </footer>*@
    </div>
</div>

@await Html.PartialAsync("_ModalsPartial")

<environment names="Development">
    <script src="~/lib/jquery/dist/jquery.js"></script>
    <script src="~/lib/jquery-ui/jquery-ui.js"></script>
    <script src="~/lib/bootstrap/dist/js/bootstrap.js"></script>
    <script src="~/lib/knockout/dist/knockout.js"></script>
    @*<script src="~/lib/jquery.serializeJSON/jquery.serializejson.js"></script>*@
    <script src="~/js/app.js"></script>
    <script src="~/js/admin/admin.js"></script>
</environment>
<environment names="Staging,Production">
    <script src="https://ajax.aspnetcdn.com/ajax/jquery/jquery-2.1.4.min.js"
            asp-fallback-src="~/lib/jquery/dist/jquery.min.js"
            asp-fallback-test="window.jQuery">            
    </script>
    <script src="http://ajax.aspnetcdn.com/ajax/jquery.ui/1.11.4/jquery-ui.min.js"
            asp-fallback-src="~/lib/jquery-ui/jquery-ui.min.js"
            asp-fallback-test="window.jQuery">            
    </script>
    <script src="http://ajax.aspnetcdn.com/ajax/bootstrap/3.3.6/bootstrap.min.js"
            asp-fallback-src="~/lib/bootstrap/dist/js/bootstrap.min.js"
            asp-fallback-test="window.jQuery">            
    </script>
    <script src="http://ajax.aspnetcdn.com/ajax/knockout/knockout-3.4.0.js"
            asp-fallback-src="~/lib/knockout/dist/knockout.js"
            asp-fallback-test="window.jQuery">            
    </script>
    @*<script src="~/lib/jquery.serializeJSON/jquery.serializejson.min.js"></script>*@
    <script src="~/js/app.js"></script>
    <script src="~/js/admin/admin.js"></script>
</environment>

<script>
    $(document)
        .ready(function() {
            $('[data-toggle="tooltip"]').tooltip();
        });
</script>

@RenderSection("scripts", required: false)
</body>
</html>
